<article class="cl pd-20" >
    <form  class="form form-horizontal" id="form-add">
        <div class="row cl">
            <label class="form-label col-xs-3 " style="text-align: center;">订单号：</label>
            <div class="col-xs-7 ">
                <span th:text="${o.orderid}"></span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 " style="text-align: center;">下单时间：</label>
            <div class="col-xs-7 ">
                <span th:text="${#dates.format(o.createdate, 'yyyy-MM-dd HH:mm')}"></span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 " style="text-align: center;">下单方式：</label>
            <div class="formControls col-xs-7 ">
                <span th:text="${bmaps.get(o.type)}"></span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 " style="text-align: center;">支付方式：</label>
            <div class="formControls col-xs-7 ">
                <span th:text="${pmaps.get(o.payway)}"></span>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-3 " style="text-align: center;">订单商品：</label>
            <div class="formControls col-xs-8 ">
                <table class="table table-border table-bordered table-hover table-bg" >
                    <thead>
                    <tr class="text-c">
                        <th width="100">种类</th>
                        <th >名称</th>
                        <th width="50">数量</th>
                        <th width="50">单价</th>
                    </tr>
                    </thead>
                    <tbody id="detailtable">
                    <tr class="text-c" th:each="od : ${orderDetails}">
                        <td th:text="${cmaps.get(od.goodscid)}"> </td>
                        <td th:text="${od.goodsname}"> </td>
                        <td th:text="${od.quantity}">  </td>
                        <td th:text="${od.price}">  </td>
                    </tr>
                    </tbody>
                </table>

            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-3 " style="text-align: center;">总金额：</label>
            <div class="formControls col-xs-5 ">
                <span th:text="${o.total}"></span>
            </div>

        </div>
        <div class="row cl">
            <div class="col-xs-8 col-xs-offset-3">
                <input class="btn btn-primary radius" onclick="closealert()" type="button" value="&nbsp;&nbsp;返回&nbsp;&nbsp;" />
            </div>
        </div>
    </form>
</article>

    <script th:inline="javascript">

        /*<![CDATA[*/
        function closealert(){
            var index = layer.index;
            layer.close(index);
        }

        /*]]>*/
    </script>

